// Copyright (c) 2016 Chef Software Inc. and/or applicable contributors
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
//     http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.

html {
  overflow-y: scroll;
}

body {
  color: $base-font-color;
  font-family: $base-font-family;
  font-size: $base-font-size;
  line-height: $base-line-height;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  color: $hab-blue-dark;
  font-family: $heading-font-family;
  font-size: $base-font-size;
  line-height: $heading-line-height;
  margin: 0 0 $small-spacing;
  font-weight: normal;
}

h1 {
  font-size: 200%;
}

h2 {
  font-size: 125%;

  .page-title & {
    margin: rem(20) 0 0;
  }
}

h3 {
  font-size: 100%;

  .hero & {
    padding: 1.5em 0 1em;
    text-align: center;
  }
}

h4 {
  text-transform: uppercase;
  font-size: 75%;
  letter-spacing: 0.4px;
  line-height: 1.5em;

  .page-title & {
    font-family: $base-font-family;
    font-size: rem(16);
    font-weight: 600;
    margin-top: rem(10);
  }
}

p {
  margin-bottom: $base-spacing * 1.5;
}

a {
  color: $action-color;
  text-decoration: none;
  transition: color $base-duration $base-timing;

  &:active,
  &:focus,
  &:hover {
    color: $hover-color;
  }

  &.active {
    color: $base-font-color;
    cursor: default;
  }
}

hr {
  border-bottom: $base-border;
  border-left: 0;
  border-right: 0;
  border-top: 0;
  margin: $base-spacing 0;
}

img,
picture {
  margin: 0;
  max-width: 100%;
}

.small {
  font-size: rem(12);
}
